/*
 * @(#)TimeInterval.java
 * Date 2013-08-15
 * Version 1.0
 * Author Jim Horner
 * Copyright (c)2012
 */


package us.hornerscorners.lamppost.model.common;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.map.annotate.JsonDeserialize;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import org.joda.time.DateTime;
import us.hornerscorners.lamppost.model.DateTimeJsonDeserializer;

import us.hornerscorners.lamppost.model.DateTimeJsonSerializer;


/**
 *
 * @author jim
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class TimeInterval {

    /** Field description */
    @JsonSerialize(using = DateTimeJsonSerializer.class)
    @JsonDeserialize(using = DateTimeJsonDeserializer.class)
    private DateTime start;

    /** Field description */
    @JsonSerialize(using = DateTimeJsonSerializer.class)
    @JsonDeserialize(using = DateTimeJsonDeserializer.class)
    private DateTime stop;

    /**
     * Constructs ...
     *
     */
    public TimeInterval() {
        super();
    }

    /**
     * Method description
     *
     *
     * @return
     */
    public DateTime getStart() {
        return start;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    public DateTime getStop() {
        return stop;
    }

    /**
     * Method description
     *
     *
     * @param start
     */
    public void setStart(DateTime start) {
        this.start = start;
    }

    /**
     * Method description
     *
     *
     * @param end
     */
    public void setStop(DateTime end) {
        this.stop = end;
    }
}
